package com.nicy.dream.service.imp;

import com.nicy.dream.service.DubboService;
import com.nicy.molly.service.DemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @projectName:dream
 * @see:com.nicy.dream.service.imp
 * @author:NicyYe
 * @createTime:2021/3/12 12:20
 * @version:1.0
 */
@Service
public class DubboServiceImpl implements DubboService {

    @DubboReference(version = "1.0.0",check = false,url = "dubbo://127.0.0.1:20880")
    private DemoService demoService;

    @Override
    public String sayHello(String name) {
        return demoService.sayHello(name);
    }
}
